package com.lxm.ymcc.web.controller;

import com.lxm.ymcc.result.JSONResult;
import com.lxm.ymcc.service.ITokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/courseOrder")
public class TokenController {
    @Autowired
    private ITokenService tokenService;

    @GetMapping("/createTokenForOrder/{ids}")
    public JSONResult createTokenForOrder(@PathVariable("ids") String ids){
        String token = tokenService.createTokenForOrder(ids);
        return JSONResult.success(token);
    }



    }


